package com.xiangyueEducation.uploaderCloud.context;

import com.xiangyueEducation.uploaderCloud.pojo.entity.User;

public class BaseContext {

    public static ThreadLocal<User> threadLocal = new ThreadLocal<>();

    public static void setCurrentUser(User user) {
        threadLocal.set(user);
    }

    public static User getCurrentUser() {
        return threadLocal.get();
    }

}
